import { _decorator, Component, Node, input, Input, EventTouch, Toggle, UITransform, color, Sprite, BoxCollider2D } from 'cc';
import { GameManage } from './GameManage';
const { ccclass, property } = _decorator;

@ccclass('ClickImg')
export class ClickImg extends Component {
    start()
    {
        this.node.getComponent(BoxCollider2D).size.width=this.node.getComponent(UITransform).width
        this.node.getComponent(BoxCollider2D).size.height=this.node.getComponent(UITransform).height
    }
    touchStart(e:Toggle)
    {//把点击的图片传入
        this.node.parent.parent.getChildByName('GameManage').getComponent(GameManage).checkPic(e.node);
    }
    aaaa()
    {
        
    }
}

